home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / Libraries / tcl7.4b3 / porting.notes < prev    next >
Encoding:
Text File  |  1995-03-24  |  3.1 KB  |  89 lines

  1. This file contains a collection of notes that various people have
  2. provided about porting Tcl to various machines and operating systems.
  3. I don't have personal access to any of these machines, so I make
  4. no guarantees that the notes are correct, complete, or up-to-date.
  5. If you see the word "I" in any explanations, it refers to the person
  6. who contributed the information, not to me;  this means that I
  7. probably can't answer any questions about any of this stuff.  In
  8. some cases, a person has volunteered to act as a contact point for
  9. questions about porting Tcl to a particular machine;  in these
  10. cases the person's name and e-mail address are listed.  I'm very
  11. interested in getting new porting information to add to the file;
  12. please mail updates to "john.ousterhout@eng.sun.com".
  13.  
  14. This file reflects information provided for Tcl 7.4 and later releases.
  15. If there is no information for your configuration in this file, check
  16. the file "porting.old" too;  it contains information that was
  17. submitted for Tcl 7.3 and earlier releases, and some of that information
  18. may still be valid.
  19.  
  20. Porting information is likely to become available on the Web sometime
  21. soon.  You might try the following URLs:
  22.     http://www.smli.com/research/tcl
  23.     http://www.smli.com/tcl
  24.     http://www.smli.com/~ouster
  25.     http://playground.sun.com/~ouster
  26.  
  27. sccsid = @(#) porting.notes 1.6 95/03/24 09:38:12
  28.  
  29. --------------------------------------------
  30. Pyramid DC/OSx SVr4, DC/OSx version 94c079
  31. --------------------------------------------
  32.  
  33. Tcl seems to dump core in cmdinfo.test when compiled with the
  34. optimiser turned on in TclEval which calls 'free'.  To get around
  35. this, turn the optimiser off.
  36.  
  37. --------------------------------------------
  38. SGI machines, IRIX 5.2
  39. --------------------------------------------
  40.  
  41. 1. Add "-D_BSD_TIME" to CFLAGS in Makefile.  This avoids type conflicts
  42.    in the prototype for the gettimeofday procedure.
  43.  
  44. 2. If you compile with gcc-2.6.3 under some versions of IRIX (e.g.
  45.    4.0.5), DBL_MAX is defined too large for gcc and Tcl complains
  46.    about all floating-point values being too large to represent.
  47.    If this happens, redefining DBL_MAX to 9.99e299.
  48.  
  49. --------------------------------------------
  50. IBM RTs, AOS
  51. --------------------------------------------
  52.  
  53. 1. Steal fmod from 4.4BSD
  54. 2. Add a #define to tclExpr such that:
  55. extern double fmod(); 
  56. is defined conditionally on ibm032
  57.  
  58. --------------------------------------------
  59. FreeBSD
  60. --------------------------------------------
  61.  
  62. FreeBSD's math library does not properly handle floating-point exceptions,
  63. which can cause core dumps.  The following patch eliminates the problem:
  64.  
  65. *** tclBasic.c:1.1.1.1  Tue Sep 27 15:49:29 1994
  66. --- tclBasic.c  Tue Sep 27 15:49:29 1994
  67. ***************
  68. *** 35,40 ****
  69. --- 35,42 ----
  70.   #   include "tclUnix.h"
  71.   #endif
  72.   
  73. + #include <floatingpoint.h>
  74.   /*
  75.    * The following structure defines all of the commands in the Tcl core,
  76.    * and the C procedures that execute them.
  77. ***************
  78. *** 276,281 ****
  79. --- 278,285 ----
  80.             error $msg\n\
  81.         }";
  82.   
  83. +     fpsetround(FP_RN);
  84. +     fpsetmask(0L);
  85.       return Tcl_Eval(interp, initCmd);
  86.   }
  87.  
  88.